package com.example.dou2204.baseMVVM;

import androidx.lifecycle.ViewModel;

public abstract class BaseViewModel<Repo extends BaseRepo> extends ViewModel {
    protected Repo repo;

    public BaseViewModel() {
        repo = createRepo();//抽象，在对应的viewmodel重新写
    }

    protected abstract Repo createRepo();


}
